From: Borislav Petkov (AMD) Date: Tue, 2 May 2023 17:53:50 +0000 (+0200) Subject: x86/microcode/AMD: Load late on both threads too X-Git-Tag: archive/raspbian/5.10.179-3+rpi1^2~21 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=400878681228cbef0bf69972ed92622043c3d403;p=linux.git x86/microcode/AMD: Load late on both threads too Origin: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit?id=113ce5ed59fc99838ec7564c37323a3b4e500cde commit a32b0f0db3f396f1c9be2fe621e77c09ec3d8e7d upstream. Do the same as early loading - load on both threads. Signed-off-by: Borislav Petkov (AMD) Cc: Link: https://lore.kernel.org/r/20230605141332.25948-1-bp@alien8.de Signed-off-by: Greg Kroah-Hartman Gbp-Pq: Topic bugfix/x86 Gbp-Pq: Name x86-microcode-AMD-Load-late-on-both-threads-too.patch --- diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index a4c389062ba..7a395dddf31 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -700,7 +700,7 @@ static enum ucode_state apply_microcode_amd(int cpu) rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy); /* need to apply patch? */ - if (rev >= mc_amd->hdr.patch_id) { + if (rev > mc_amd->hdr.patch_id) { ret = UCODE_OK; goto out; }